package javajichu.shuozhu.Zuoyei;

import java.util.Scanner;

public class Zy6 {
    public static void main(String args[]) {
        int[] num = { 2, 3, 5, 15, 14, 5, 5, 7, 9, 3, 5, 6, 14, 5, 1 };
        Scanner input = new Scanner(System.in);
        System.out.println("请输入一个数：");
        int a = input.nextInt();
        int j = 0;
        for (int i = 0; i < num.length; i++) {

            if (a == num[i]) {
                j++;
            }
        }
        System.out.println("查找的数字出现" + j + "次");
    }
}
